local frame = CreateFrame("Frame")
frame:SetScript("OnUpdate", function (frame, elapsed)
	local time = (frame.time or 0) + elapsed
	frame.time = time
	if time > 0.1 and not InCombatLockdown() then
		local id = JerryDB.itemid or 1
		if id > 34500 then
			frame:SetScript("OnUpdate", nil)
			frame:Hide() 
		end
		local tt = frame.tt
		if not tt then
			tt = CreateFrame("GameTooltip", nil, f)
		frame.tt = tt
		end
		tt:SetOwner(frame)
		tt:SetHyperlink(("item:%d"):format(id))
		JerryDB.itemid = id + 1
		frame.time = 0
	end
end)
frame:Show()
